package com.babystudy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.babystudy.service.UserService;

@Controller
public class AdminController {
	@Autowired
	UserService userservice;
	@RequestMapping("/show")
	public ModelAndView showinfo(){
		ModelAndView mv = new ModelAndView();
		mv.setViewName("/views/userlist");
		mv.addObject("ulist",userservice.getAllUser());
		return mv;
		
	}

}
